import request from '@/utils/request';

// 获取机构信息列表
export function getInstitutionList(query, data) {
    return request({
        url: '/system/data/institutionList',
        method: 'post',
        params: query,
        data
    })
}

//根据机构编号获取机构详细信息
export function getInstitution(institutionId) {
    return request({
        url: '/system/data/institution/' + institutionId,
        method: 'get'
    })
}

// 根据机构编号获取机构持有设备信息
export function getDeviceListById(query, institutionId) {
    return request({
        url: '/system/data/getDeviceListByInstitutionId/' + institutionId,
        method: 'get',
        params: query
    })
}

// 根据机构编号获取机构持有设备信息
export function getDeviceListByPersonId(query, deviceId) {
    return request({
        url: '/system/data/getDeviceListByPersonId/' + deviceId,
        method: 'get',
        params: query
    })
}

// 根据机构编号获取机构审核记录
export function getInstitutionAuditList(institutionId) {
    return request({
        url: '/system/data/institution/getInstitutionAuditList/' + institutionId,
        method: 'get'
    })
}

// 机构认证审核
export function getEditAuthentication(data) {
    return request({
        url: '/system/data/institution/editAuthentication',
        method: 'post',
        data
    })
}

// 获取机构下飞手与航空器信息
export function getPilotAndDeviceApi(institutionId) {
    return request({
        url: '/system/data/institution/pilotAndDevice/' + institutionId,
        method: 'GET'
    })
}












